<?php

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class FhKnow extends Model
{
	
    protected $table = 'fh_know';
    public static function boot()
    {
        parent::boot();

        static::saving(function ($model) {

            // $model->img = implode(",",$model->img);
            if(strpos($model->url, "/dt_testimonials/") === false){
                $model->url = "/dt_testimonials/".$model->url;
            }
        });
    }

}
